package org.primefaces.optimus.util;

import javax.faces.context.FacesContext;

import org.primefaces.optimus.config.OptimusBeanContext;

public class OptimusBeanContextUtils {

	public static OptimusBeanContext getBeanContext() {
		return (OptimusBeanContext) FacesContext.getCurrentInstance().getExternalContext().getApplicationMap().get(Constants.BEANCONTEXT_KEY);
	}
}